/*
@Time : 2019/6/12 0012 11:02
@Author : visons
*/
package playerActor

import (
	"cellent_test/base/model"
	"github.com/davyxu/cellnet"
	"time"
)

type PlayerActor struct {
	session      cellnet.Session
	lastPingTime time.Time
	user         *model.Users
}

func (pa *PlayerActor) SetSession(session cellnet.Session) {
	pa.session = session
}

func (pa *PlayerActor) GetSession() cellnet.Session {
	return pa.session
}

func (pa *PlayerActor) SetLastPingTime(t time.Time) {
	pa.lastPingTime = t
}

func (pa *PlayerActor) GetLastPingTime() time.Time {
	return pa.lastPingTime
}

func (pa *PlayerActor) SetUser(user *model.Users) {
	pa.user = user
}

func (pa *PlayerActor) GetUser() *model.Users {
	return pa.user
}
